package com.eatrip.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eatrip.bean.Regione;
import com.eatrip.dao.RegioniDAO;
import com.eatrip.service.RegioniService;

@Service
public class RegioniServiceImple implements RegioniService {

	@Autowired
	private RegioniDAO regioniDAO;
	
	@Override
	@Transactional(readOnly = true)
	public Regione getRegione(int idRegione) {
		return regioniDAO.getRegione(idRegione);
	}

	@Override
	@Transactional(readOnly = true)
	public List<Regione> getAllRegioni() {
		return regioniDAO.getAllRegioni();
	}

}
